{load_language_text section="account_edit"}
{load_language_text section="buttons" name="button"}

<h1>{$txt.heading_account}</h1>

<h2 class="underline"><img class="png-fix" src="{$tpl_path}img/icons/address.png" alt="" /> {$txt.title_personal}</h2>

{if $delete!='1'}
<div class="required_info">
	{$txt.text_must}
</div>
{/if}
<div id="account">
	<form id="{$FORM_ID}" action="{$FORM_ACTION_URL}" method="{$FORM_METHOD}">
		<fieldset>
			<table cellspacing="0" cellpadding="0" border="0">

				<tr>
					<td class="col_0"><label>{$txt.label_gender}</label></td>
					<td class="col_1">
						<input type="radio" name="{$form_data.gender.name}" value="{$form_data.gender.m.value}"{if $form_data.gender.m.checked == '1'} checked="checked"{/if} /> {$txt.gender_male}
						<input type="radio" name="{$form_data.gender.name}" value="{$form_data.gender.f.value}"{if $form_data.gender.f.checked == '1'} checked="checked"{/if} /> {$txt.gender_female}
						{if $form_data.gender.required == '1'} * {/if}
						{if $error_gender}
							<span class="class_error_message">{$error_gender}</span>
						{/if}
					</td>
				</tr>
				<tr>
					<td class="col_0"><label>{$txt.label_firstname}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.firstname.name}" value="{$form_data.firstname.value}" class="input-text" />
						{if $form_data.firstname.required == '1'} * {/if}
						{if $error_first_name}
							<span class="class_error_message">{$error_first_name}</span>
						{/if}
					</td>
				</tr>
				<tr>
					<td class="col_0"><label>{$txt.label_lastname}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.lastname.name}" value="{$form_data.lastname.value}" class="input-text" />
						{if $form_data.lastname.required == '1'} * {/if}
						{if $error_last_name}
							<span class="class_error_message">{$error_last_name}</span>
						{/if}
					</td>
				</tr>
				{if $birthdate=='1'}
				<tr>
					<td class="col_0"><label>{$txt.label_birthdate}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.birthdate.name}" value="{$form_data.birthdate.value}" class="input-text" />{$txt.birthday_example}
						{if $form_data.birthdate.required == '1'} * {/if}
						{if $error_birthdate}
							<span class="class_error_message">{$error_birthdate}</span>
						{/if}
					</td>
				</tr>
				{/if}
				<tr>
					<td class="col_0"><label>{$txt.label_email}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.email.name}" value="{$form_data.email.value}" class="input-text" />
						{if $form_data.email.required == '1'} * {/if}
						{if $error_email}
							<span class="class_error_message">{$error_email}</span>
						{/if}
					</td>
				</tr>
				<tr>
					<td class="col_0"><label>{$txt.label_tel}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.telephone.name}" value="{$form_data.telephone.value}" class="input-text" />
						{if $form_data.telephone.required == '1'} * {/if}
						{if $error_tel}
							<span class="class_error_message">{$error_tel}</span>
						{/if}
					</td>
				</tr>
				<tr>
					<td class="col_0"><label>{$txt.label_fax}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.fax.name}" value="{$form_data.fax.value}" class="input-text" />
					</td>
				</tr>
				{if $vat=='1'}
				<tr>
					<td class="col_0"><label>{$txt.label_vat}</label></td>
					<td class="col_1">
						<input type="text" name="{$form_data.vat.name}" value="{$form_data.vat.value}" class="input-text" />
						{if $form_data.vat.required == '1'} * {/if}
						{if $error_vat}
							<span class="class_error_message">{$error_vat}</span>
						{/if}
					</td>
				</tr>
				{/if}
			</table>
		</fieldset>

		{if $check_privacy || $show_privacy}
			<br />
			{$INPUT_PRIVACY}
			{$PRIVACY_LINK}

			{if $error_privacy}
				<span class="class_error_message">{$error_privacy}</span>
			{/if}
		{/if}

		{if $GM_PRIVACY_LINK != '0'}
			<br />
			<div id="gm_privacy">
				{$GM_PRIVACY_LINK}
			</div>
			<br />
		{/if}

		<input type="hidden" name="{$HIDDEN_FIELD_NAME}" value="{$HIDDEN_FIELD_VALUE}" />

		<a href="{$BUTTON_BACK_LINK}" class="button_grey button_set"><span class="button-outer"><span class="button-inner">{$button.back}</span></span></a>

		<a href="{page_url}#" class="button_blue button_set action_submit"><span class="button-outer"><span class="button-inner">{$button.save}</span></span></a>
	</form>
</div>